<?php
include_once 'header.php';
?>
<style>
    #body {
        height: 500px;
        width: 100%;
        background-color: #d3d3d3;
    }
    #reginst {
        height: 400px;
        width: 700px;
        background-color: white;
        margin-top: 40px;
        margin-left: 50px;
    }
    table {
        margin-top: 0px;
        margin-left: 20px;
        height: 350px;
        border-collapse: collapse;
        font-size: 20px;
    }
    #reginst_title {
        margin-top: 0;
        height: 50px;
        background-color: #e1e5ef;
    }
    #reginst_t {
        margin-top: 0;
        margin-left: 20px;
        line-height: 50px;
    }
    td {
        /*border: 1px solid red;*/
    }
    img {
        height: 40px;
        /*width: 80px;*/
        /*background-color: red;*/
    }
    #reginst_login a {
        text-decoration: none;
        color: blue;

    }
</style>
<form method="post" action="doaction.php?action=reginst">
    <div id="reginst">
        <div id="reginst_title">
            <p id="reginst_t">mybbs >> 注册</p>
        </div>
        <table>
            <tr>
                <td>登录名:</td>
                <td><input type="text" value="zhangsan" name="username"></td>
                <td>允许字母 数字 中文 ,不能全为数字,4~12个字节</td>
            </tr>
            <tr>
                <td>密&nbsp码:</td>
                <td colspan="2"><input type="text" value="zhangsan" name="userpsw"></td>
            </tr>
            <tr>
                <td>重&nbsp复:</td>
                <td colspan="2"><input type="text" value="zhangsan" name="userpsw1"></td>
            </tr>
            <tr>
                <td>验证码:</td>
                <td><input type="text" name="code"></td>
                <td><img src="random.php" id="code" onclick="document.getElementById('code').src = 'random.php'"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="注册" style="font-size:20px;"></td>
                <td></td>
            </tr>
            <tr>
                <td colspan="3" id="reginst_login"><p style="height: 20px;">已有用户?<a href="login.php">现在登录</a>&nbsp&nbsp 忘记密码?<a href="forgot_psw.php">马上找回</a></p></td>
            </tr>
        </table>

    </div>
</form>

<?php

include_once 'footer.php';
?>